Find objects instead of tags.
authorAlex Crichton <alex@alexcrichton.com>
Sun, 4 Jan 2015 06:45:58 +0000 (22:45 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 4 Jan 2015 06:45:58 +0000 (22:45 -0800)
commitdf19160f03404287bcac3d2991db922211ebb4fb
treebae987bcdb473bd2728297b77a36f04112669982
parent465787553b483f5217e38978a26e372d9e527424
Find objects instead of tags.

It looks like tags don't always point to tag objects, but rather sometimes to
commits themselves. This tweaks the peeling logic for tags to find an *object*
first, and then peel to a commit, rather than finding a tag first and then
peeling.

Closes #1119
src/cargo/sources/git/utils.rs